export function volleyFlag(nowPath) {
    let tag = uni.getStorageSync("volleyTag");
    let backUrl = uni.getStorageSync("backUrl");
    console.log("拦截类型   volleyTag=====>", tag)
    console.log("当前地址   nowPath=====>", nowPath)
    console.log("回跳地址   backUrl=====>", backUrl)
    if (tag == "volleySwitch") {
        if (!backUrl.includes(nowPath)) {
            console.log("拦截事件生效-回跳地址", backUrl)
            /*  uni.reLaunch({
                  url: backUrl
              });
              */

            uni.switchTab({
                "url": backUrl,
                //
                success: (e) => {
                },
                //
                // 存在连续点击报错：{"errMsg":"switchTab:fail timeout"}
                fail: (e) => {
                    console.log("拦截事件生效-报错，继续", backUrl)
                    volleyFlag(nowPath)
                }
            })
        } else {
            console.log("当前页面自身，不需要跳转", backUrl)
        }
    }
}